package com.atghost.minio.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Admin
 * @version 1.0
 * @date 2024-5-12 22:01
 **/
@Data
@Component
@ConfigurationProperties(prefix = "file.server")
public class MinioProperties {

    @Value("endpoint")
    private String endpoint;

    @Value("accessKey")
    private String accessKey;

    @Value("secretKey")
    private String secretKey;

    @Value("bucketName")
    private String bucketName;

    @Value("region")
    private String region;
}
